<?php
if(!defined("ADMREAD")) exit();
global $conf,$sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if (in_array('link',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])) {    $block['id'] = 'link';
    $block['title'] = $lang['menu_link'];
    $block['link'] = array(
    'link.php?dn=index&ops='.$sess['hash'] => $lang['all_set'],
    'link.php?dn=linklist&ops='.$sess['hash'] => $lang['link_all'],
    'link.php?dn=linkcat&ops='.$sess['hash'] => $lang['all_cat'],
    'link.php?dn=linkcatadd&ops='.$sess['hash'] => $lang['all_add_cat'],
    'link.php?dn=linkadd&ops='.$sess['hash'] => $lang['link_add']
    );
    if($conf['lbroken'] == 'yes'){
        $block['link'] = @array_merge($block['link'],
        array(
        'link.php?dn=linkbrokenlist&ops='.$sess['hash'] => $lang['menu_no_access'],
        //'link.php?dn=linkbrokenclear&ops='.$sess['hash'] => $lang['clear_list']
        )
        );
    }
    if($conf['ladd'] == 'yes'){
        $block['link'] = @array_merge($block['link'],
        array(
        'link.php?dn=linknew&ops='.$sess['hash'] => $lang['all_new'],
        //'link.php?dn=linknewclear&ops='.$sess['hash'] => $lang['clear_list']
        )
        );
    }
}
?>